package com.platform.common.core.domain.entity;

import com.platform.common.core.annotation.Excel;
import com.platform.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.text.StringEscapeUtils;

/**
 * 国际出港主单从表对象 mb_gjc_mawbm
 *
 * @author platform
 * @date 2023-04-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class GjcMawbm extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 运单id
     */
    @Excel(name = "运单id")
    private Long mawbId;

    /**
     * 运单3位前缀
     */
    @Excel(name = "运单3位前缀")
    private String billPrefix;

    /**
     * 运单8位单号
     */
    @Excel(name = "运单8位单号")
    private String billNo;

    /**
     * 收货人名称
     */
    @Excel(name = "收货人名称")
    private String consignee;

    /**
     * 收货人代码
     */
    @Excel(name = "收货人代码")
    private String consigneeId;

    /**
     * 收货人电话
     */
    @Excel(name = "收货人电话")
    private String consigneePhone;

    /**
     * 收运人地址
     */
    @Excel(name = "收运人地址")
    private String consigneeAddress;

    /**
     * 收货人城市
     */
    @Excel(name = "收货人城市")
    private String consigneeCity;

    /**
     * 收货人国家代码
     */
    @Excel(name = "收货人国家代码")
    private String consigneeCountry;

    /**
     * 发货人名称
     */
    @Excel(name = "发货人名称")
    private String shipper;

    /**
     * 发货人代码
     */
    @Excel(name = "发货人代码")
    private String shipperId;

    /**
     * 发货人电话
     */
    @Excel(name = "发货人电话")
    private String shipperPhone;

    /**
     * 发货人地址
     */
    @Excel(name = "发货人地址")
    private String shipperAddress;

    /**
     * 发货人城市
     */
    @Excel(name = "发货人城市")
    private String shipperCity;

    /**
     * 发货人国家代码
     */
    @Excel(name = "发货人国家代码")
    private String shipperCountry;

    /**
     * 时间戳
     */
    @Excel(name = "时间戳")
    private String ts;

    public void setConsignee(String consignee) {
        consignee = StringEscapeUtils.unescapeHtml4(consignee);
        this.consignee = consignee;
    }


    public void setConsigneePhone(String consigneePhone) {
        consigneePhone = StringEscapeUtils.unescapeHtml4(consigneePhone);
        this.consigneePhone = consigneePhone;
    }


    public void setConsigneeAddress(String consigneeAddress) {
        consigneeAddress = StringEscapeUtils.unescapeHtml4(consigneeAddress);
        this.consigneeAddress = consigneeAddress;
    }


    public void setConsigneeCity(String consigneeCity) {
        consigneeCity = StringEscapeUtils.unescapeHtml4(consigneeCity);
        this.consigneeCity = consigneeCity;
    }


    public void setShipper(String shipper) {
        shipper = StringEscapeUtils.unescapeHtml4(shipper);
        this.shipper = shipper;
    }

    public void setShipperPhone(String shipperPhone) {
        shipperPhone = StringEscapeUtils.unescapeHtml4(shipperPhone);
        this.shipperPhone = shipperPhone;
    }


    public void setShipperAddress(String shipperAddress) {
        shipperAddress = StringEscapeUtils.unescapeHtml4(shipperAddress);
        this.shipperAddress = shipperAddress;
    }


    public void setShipperCity(String shipperCity) {
        shipperCity = StringEscapeUtils.unescapeHtml4(shipperCity);
        this.shipperCity = shipperCity;
    }

}
